package lotus.blog.lotusblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import lotus.blog.lotusblog.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where email = #{email}")
    public User getUserByEmail(@Param("email") String email);
    @Select("select * from user where username = #{username}")
    public User getUserByUsername(@Param("username") String username);
}
